package com.fuyun.rpc.admin.entity;

/**
 * 统计信息实体类
 */
public class StatisticsInfo {
	/**
	 * 服务总数
	 */
	private int totalServices;

	/**
	 * 在线服务数
	 */
	private int onlineServices;

	/**
	 * 离线服务数
	 */
	private int offlineServices;

	/**
	 * 总调用次数
	 */
	private long totalCalls;

	/**
	 * 成功调用次数
	 */
	private long successCalls;

	/**
	 * 失败调用次数
	 */
	private long failedCalls;

	/**
	 * 平均响应时间(ms)
	 */
	private double averageResponseTime;

	/**
	 * 最大响应时间(ms)
	 */
	private long maxResponseTime;

	/**
	 * 最小响应时间(ms)
	 */
	private long minResponseTime;

	// Getters and Setters

	public int getTotalServices() {
		return totalServices;
	}

	public void setTotalServices(int totalServices) {
		this.totalServices = totalServices;
	}

	public int getOnlineServices() {
		return onlineServices;
	}

	public void setOnlineServices(int onlineServices) {
		this.onlineServices = onlineServices;
	}

	public int getOfflineServices() {
		return offlineServices;
	}

	public void setOfflineServices(int offlineServices) {
		this.offlineServices = offlineServices;
	}

	public long getTotalCalls() {
		return totalCalls;
	}

	public void setTotalCalls(long totalCalls) {
		this.totalCalls = totalCalls;
	}

	public long getSuccessCalls() {
		return successCalls;
	}

	public void setSuccessCalls(long successCalls) {
		this.successCalls = successCalls;
	}

	public long getFailedCalls() {
		return failedCalls;
	}

	public void setFailedCalls(long failedCalls) {
		this.failedCalls = failedCalls;
	}

	public double getAverageResponseTime() {
		return averageResponseTime;
	}

	public void setAverageResponseTime(double averageResponseTime) {
		this.averageResponseTime = averageResponseTime;
	}

	public long getMaxResponseTime() {
		return maxResponseTime;
	}

	public void setMaxResponseTime(long maxResponseTime) {
		this.maxResponseTime = maxResponseTime;
	}

	public long getMinResponseTime() {
		return minResponseTime;
	}

	public void setMinResponseTime(long minResponseTime) {
		this.minResponseTime = minResponseTime;
	}

	@Override
	public String toString() {
		return "StatisticsInfo{" + "totalServices=" + totalServices + ", onlineServices=" + onlineServices + ", offlineServices=" + offlineServices + ", totalCalls=" + totalCalls + ", successCalls=" + successCalls + ", failedCalls=" + failedCalls + ", averageResponseTime=" + averageResponseTime + ", maxResponseTime=" + maxResponseTime + ", minResponseTime=" + minResponseTime + '}';
	}
}